import { AbstractGuideItems } from './abstract-guide-items';
import { IGuideItemOptions } from './guide-item';
import * as Mobile from './images/mobile-image';


/**
 * 触摸操作指导参数信息
 */
class GuideItemsMobile extends AbstractGuideItems {

    protected get moveImagesAndContents(): [string, string][] {
        return [
            [Mobile.LeftDrag, '在屏幕左半部分空白区域按住并移动，\n向各个方向移动。'],
        ];
    }

    protected get orientateImagesAndContents(): [string, string][] {
        return [
            [Mobile.RightDrag, '在屏幕右半部分空白区域按住并移动，\n旋转视角。']
        ];
    }

    protected get panImagesAndContents(): [string, string][] {
        return [
            [Mobile.LeftDrag, '在屏幕左半部分空白区域按住并移动，\n向各个方向平移。']
        ];
    }

    protected get zoomImagesAndContents(): [string, string][] {
        return [
            [Mobile.LeftTopPress, '按住屏幕左上部分空白区域不动，放大\n视角。'],
            [Mobile.LeftBottomPress, '按住屏幕左下部分空白区域不动，缩小\n视角。']
        ];
    }

    protected get clickImagesAndContents(): [string, string][] {
        return [
            [Mobile.Click, '在物体上点击，进行点击、选择等操作。']
        ];
    }

    protected get dragImagesAndContents(): [string, string][] {
        return [
            [Mobile.Drag, '在物体上按住并移动，进行拖拽操作。']
        ];
    }

    protected get pressImagesAndContents(): [string, string][] {
        return [
            [Mobile.Press, '在物体上按住不动，触发特殊操作。']
        ];
    }

    protected get itemCommonOptions(): IGuideItemOptions {
        const ops = super.itemCommonOptions;
        ops.imageWidth = 80;
        ops.imageHeight = 80;
        return ops;
    }

}


export { GuideItemsMobile };